package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户权限
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpUserPerm extends Model<JbdpUserPerm> {

    private static final long serialVersionUID=1L;

    /**
     * 用户权限ID
     */
    @TableId("USER_PERM_ID")
    private String userPermId;

    /**
     * 用户ID
     */
    @TableField("USER_ID")
    private String userId;

    /**
     * 资源ID
     */
    @TableField("RESOURCE_ID")
    private String resourceId;

    /**
     * 资源类型
     */
    @TableField("RESOURCE_TYPE")
    private String resourceType;


    public String getUserPermId() {
        return userPermId;
    }

    public JbdpUserPerm setUserPermId(String userPermId) {
        this.userPermId = userPermId;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public JbdpUserPerm setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getResourceId() {
        return resourceId;
    }

    public JbdpUserPerm setResourceId(String resourceId) {
        this.resourceId = resourceId;
        return this;
    }

    public String getResourceType() {
        return resourceType;
    }

    public JbdpUserPerm setResourceType(String resourceType) {
        this.resourceType = resourceType;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.userPermId;
    }

    @Override
    public String toString() {
        return "JbdpUserPerm{" +
        "userPermId=" + userPermId +
        ", userId=" + userId +
        ", resourceId=" + resourceId +
        ", resourceType=" + resourceType +
        "}";
    }
}
